<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <%=request.getParameter("info")%>
  <%

    Object tmess = request.getAttribute("mess");
    response.setCharacterEncoding("utf-8");
    if(tmess!=null){
      out.print(tmess);
    }
  %>
  <h1>欢迎使用tomcat and jsp</h1>
  <%=new Date()%>
  <a href="A.html"><h3>A静态页面</h3></a>
  <a href="register.jsp"><h3>跳转到register登录页面</h3></a>
  <a href="denglu1/login.jsp"><h3>跳转到denglu1登录页面</h3></a>
  <a href="denglu2/login.jsp"><h3>跳转到denglu2登录页面</h3></a>
  <a href="admin/newsDetailList.jsp"><h1>课工场</h1></a>
  <a href="admin/admin.jsp"><h1>课工场（框架结构）</h1></a>
  <a href="sanjiao.jsp"><h3>三角</h3></a>
  <br>
  <form id="form1" action="register.jsp" method="post">
      <input type="submit" value="进入登录页面">
  </form>
  <form id="form2" action="register.jsp" method="post">
  <INPUT onclick=formSubmit(); type=button value=内网登录 name=b1></TD>
  </form>
  </body>
<script>
  function formSubmit() {
    document.form2.action = "register.jsp";
    document.form2.submit();
  }


</script>
</html>
